<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>RemoveString</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">RemoveString()</font></b></p>
<p><b>Syntax</b></p><blockquote>

String$ = <font color="#006666"><b>RemoveString</b></font>(String$, StringToRemove$ [, Mode [, StartPosition [, NbOccurrences]]])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>



Finds all occurrences of 'StringToRemove$' within the specified 'String$' and removes them. 

 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>String$</i></td>
<td width="90%"> 
 
The string to use. 

 

</td></tr>
<tr><td><i>StringToRemove$</i></td>
<td> 
 
The string to remove. 

 

</td></tr>
<tr><td><i>Mode (optional)</i></td>
<td> 
 
It can be one of the following values: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_String_CaseSensitive</font>: case sensitive remove (a=a) (default)
  <font color="#924B72">#PB_String_NoCase</font>       : case insensitive remove (A=a)
</font></pre>

</td></tr>
<tr><td><i>StartPosition (optional)</i></td>
<td> 
 
Specifies the character position to start the removing. The first character position is 1. 
If omitted the whole string is used. 

 

</td></tr>
<tr><td><i>NbOccurrences (optional)</i></td>
<td> 
 
Specifies how many strings should be removed before stopping the operation. If omitted, all strings 
are removed. 

 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>



A new string without the removed strings. 

 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">Debug</font></b> <font color="#006666">RemoveString</font>("This is Art", "is") <font color="#006666">; Will display "Th  Art"</font>
  <b><font color="#006666">Debug</font></b> <font color="#006666">RemoveString</font>("This is Art", "is", <font color="#924B72">#PB_String_CaseSensitive</font>, 1, 1) <font color="#006666">; Will display "Th is Art"</font>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="insertstring.html">InsertString()</a> 

</Blockquote><p><b>Supported OS  </b><Blockquote>All</Blockquote></p><center>&lt;- <a href=rtrim.html>RTrim()</a> - <a href=index.html>String Index</a> - <a href=replacestring.html>ReplaceString()</a> -&gt;



</body></html>